import * as  THREE from 'three';import { Proton } from "../core/Proton.js";
import { MeshRender } from './MeshRender.js';

    export class SpriteRender extends MeshRender {
    constructor(container) {
       super( container);

        this._body = new THREE.Sprite(new THREE.SpriteMaterial({ color: 0xffffff }));
        this.name = "SpriteRender";
    }
    scale(particle) {
        particle.target.scale.set(particle.scale * particle.radius, particle.scale * particle.radius, 1);
    }
}

;
